pp108 : GetObjectsByName (Deprecated)

GetObjectsByName (Deprecated)


This method is used to retrieve an object by its name. GetObjectsByName is part of the CoBOC Methodset 4.2 in the Cordys CoBOC application package.

SOAP Request

<GetObjectsByName xmlns="http://schemas.cordys.com/1.0/coboc">
    <cursor numRows="2"/>
    <objectname>/Vendor/Prod_obj1</objectname>
</GetObjectsByName>

Request Parameters

Parameter

Description

Data Type

Accepted Input Values

cursor

Number of rows to be returned by the query

String

The numRows attribute of this element determines the number of rows that would be returned by the query

objectname

Contains the name of the object along with its path

Path

Example: /Vendor/Prod_obj1

order

Order (ascending or descending) in which you want the objects to be displayed

String

  • ASC - Ascending order
  • DESC - Descending order

order_by

Contains specific object metadata

SOAP Response

<GetObjectsByNameResponse xmlns="http://schemas.cordys.com/1.0/coboc">
    <cursor numRows="2"/>
    <tuple>
        <old>
            <data>
                <metadata>
                    <object_id>11720266794461</object_id>
                    <folder_id>117117382112910</folder_id>
                    <objectname>Prod_obj1</objectname>
                    <key>/Vendor/Prod_obj1</key>
                    <organization>o=system,cn=cordys,o=vanenburg.com</organization>
                    <owner>cn=Jdoe,cn=organizational users,o=system,cn=cordys,o=vanenburg.com</owner>
                    <description/>
                    <customkey>33615803</customkey>
                    <history>0</history>
                    <event>0</event>
                    <template_id>11745312963608</template_id>
                    <lastmodifieddate>1173097363566</lastmodifieddate>
                </metadata>
                <object>
                    <Product xmlns="">
                        <Id>100</Id>
                        <Name>Stereo</Name>
                    </Product>
                </object>
            </data>
        </old>
    </tuple>
</GetObjectsByNameResponse>

Response Parameters

Parameter

Description

old

Indicates that the object contained in the request exists in the database

object_id

Unique ID identifying the object

folder_id

Unique ID identifying the folder

objectname

Name of the object

key

Name of the object along with the full path.

organization

Organization in which the object has been inserted

owner

User who instantiated the object

description

Description of the object

customkey

Custom key of the object. Defined on an attribute of a template, the custom key prevents replication of the object and maintains object uniqueness.

history

Indicates whether the object is being monitored

event

Information about events defined on the object. Events help track changes in the state of the object.

template_id

Unique ID identifying the template

lastmodifieddate

Indicates the last date and time of modification of the object

object

Inserted object enclosed within this element.